package com.example.demo.controller;

import com.example.demo.entity.GiftWheelVo;
import com.example.demo.result.Result;
import com.example.demo.service.GiftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/gift")
public class GiftController {

    @Autowired
    private GiftService giftService;
    @GetMapping("/getAllGift")
    public Result<List<GiftWheelVo>> getAllGift() {
        return giftService.getAllGift();
    }
}
